<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" import="entity.Dept,java.util.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>详情页</title>


<link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css" />
</head>
<body>
<table class="table table-border table-bordered table-bg" id="test_table">
		<thead>
			<tr>
				<th scope="col" colspan="10">员工工资详情</th>
			</tr>
			<tr class="text-c">
				<th width="25">
				<th width="40">ID</th>
				<th width="90">员工ID</th>
				<th width="90">岗位工资</th>
				<th width="90">薪级工资</th>
				<th width="90">职务工资</th>
				<th width="90">绩效工资</th>
				<th width="90">应发工资</th>
				<th width="90">个人所得税</th>
				<th width="90">实发工资</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${salary }" var="s">
			<tr class="text-c">
				<td><input type="checkbox" value="${s.id }" name="check"></td>
				<td>${s.id }</td>
				<td>${s.empId }</td>
				<td>${s.positionSal }</td>
				<td>${s.xinjiSal }</td>
				<td>${s.zhiwuSal }</td>
				<td>${s.jixiaoSal }</td>
				<td>${s.allSal }</td>
				<td>${s.privateDuty }</td>
				<td>${s.factSal }</td>
			</tr>
			</c:forEach>
		</tbody>
	</table>


<script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.js"></script>
<!-- 搜索操作 -->
<script type="text/javascript" src="js/search.js"></script>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="static/h-ui/js/H-ui.min.js"></script>  <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="lib/My97DatePicker/4.8/WdatePicker.js"></script> 
<script type="text/javascript" src="lib/datatables/1.10.15/jquery.dataTables.min.js"></script> 
<script type="text/javascript" src="lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript">

/*修改部门名称*/
function admin_edit(title,url,id,w,h){
	layer_show(title,url,w,h);
	$.ajax(
			{
				url:'editDeptName',
				async : false,
	            cache : false,
	            traditional: true,
	            type : 'POST',
				data:{
					id : id
				},
				success:function(result){
					
				},
				error:function(result){
					layer.closeAll();
					//layer.msg(result.msg);
				}
			});	

	window.location.reload();//刷新父级页面
}
/*管理员-删除*/
function admin_del(id){
	layer.confirm('确认要删除吗？',function(index){
		$.ajax(
				{
					url:'delDept',
					async : false,
		            cache : false,
		            traditional: true,
		            type : 'POST',
					data:{
						id : id
					},
					success:function(result){
						layer.closeAll();
						layer.msg('已删除!',{icon: 5,time:1000});
						window.location.reload();刷新父级页面
						var index = layer.getFrameIndex(window.name); //获取当前页面索引
						layer.close(index); //关闭当前页面
					},
					error:function(result){
						layer.closeAll();
						//layer.msg(result.msg);
					}
				});	
	});
}


</script>
</body>
</html>